<template>
    <div class="header">
        <div class="top_left" @click='top_left'>
        </div>
        <div class="search">
            <input type="text" placeholder='搜索音乐、歌曲、电台'>
        </div>
        <div class="music"></div>
    </div>
</template>

<script>
    export default {
        data () {
            return {

            }
        },
        methods:{
            top_left:function(){
                this.$emit('top_left')
            }
        }
    }
</script>

<style>
    .header{
        width: 100%;
        height: 46px;
        background-color:#d43c33 ;
        position: relative;
        position: fixed;
        top: 0;
        z-index: 99;
    }
    .top_left{
        width: 40px;
        height: 46px;
        background: url() no-repeat center;
        background-size: 90% 90%;
        position: absolute;
        top: 0;
        left: 0;
        line-height: 50px;
    }
    .search{
        width:75%;
        height: 35px;
        background-color: white;
        position: absolute;
        left: 50%;
        top: 50%;
        margin-left: -37.5%;
        margin-top: -17.5px;
        border-radius: 5px;
    }
    .search input{
        width: 80%;
        height: 100%;
        border: none;
        outline: none;
    }
    .music{
        width: 40px;
        height: 46px;
        background: url() no-repeat center;
        background-size: 50% 50%;
        position: absolute;
        top: 0;
        right: 0;
        line-height: 50px;
        text-align: center;
    }
</style>
